3.34 \(\int \frac{\cosh (a+\frac{b}{x^2})}{x^4} \, dx\)

Optimal. Leaf size=75 \[ -\frac{\sqrt{\pi } e^{-a} \text{Erf}\left (\frac{\sqrt{b}}{x}\right )}{8 b^{3/2}}+\frac{\sqrt{\pi } e^a \text{Erfi}\left (\frac{\sqrt{b}}{x}\right )}{8 b^{3/2}}-\frac{\sinh \left (a+\frac{b}{x^2}\right )}{2 b x} \]

[Out]

-(Sqrt[Pi]*Erf[Sqrt[b]/x])/(8*b^(3/2)*E^a) + (E^a*Sqrt[Pi]*Erfi[Sqrt[b]/x])/(8*b^(3/2)) - Sinh[a + b/x^2]/(2*b
*x)

________________________________________________________________________________________

Rubi [A]  time = 0.0493617, antiderivative size = 75, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.417, Rules used = {5347, 5325, 5298, 2204, 2205} \[ -\frac{\sqrt{\pi } e^{-a} \text{Erf}\left (\frac{\sqrt{b}}{x}\right )}{8 b^{3/2}}+\frac{\sqrt{\pi } e^a \text{Erfi}\left (\frac{\sqrt{b}}{x}\right )}{8 b^{3/2}}-\frac{\sinh \left (a+\frac{b}{x^2}\right )}{2 b x} \]

Antiderivative was successfully verified.

[In]

Int[Cosh[a + b/x^2]/x^4,x]

[Out]

-(Sqrt[Pi]*Erf[Sqrt[b]/x])/(8*b^(3/2)*E^a) + (E^a*Sqrt[Pi]*Erfi[Sqrt[b]/x])/(8*b^(3/2)) - Sinh[a + b/x^2]/(2*b
*x)

Rule 5347

Int[((a_.) + Cosh[(c_.) + (d_.)*(x_)^(n_)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] :> -Subst[Int[(a + b*Cosh[c + d/
x^n])^p/x^(m + 2), x], x, 1/x] /; FreeQ[{a, b, c, d}, x] && IntegerQ[p] && ILtQ[n, 0] && IntegerQ[m]

Rule 5325

Int[Cosh[(c_.) + (d_.)*(x_)^(n_)]*((e_.)*(x_))^(m_.), x_Symbol] :> Simp[(e^(n - 1)*(e*x)^(m - n + 1)*Sinh[c +
d*x^n])/(d*n), x] - Dist[(e^n*(m - n + 1))/(d*n), Int[(e*x)^(m - n)*Sinh[c + d*x^n], x], x] /; FreeQ[{c, d, e}
, x] && IGtQ[n, 0] && LtQ[0, n, m + 1]

Rule 5298

Int[Sinh[(c_.) + (d_.)*(x_)^(n_)], x_Symbol] :> Dist[1/2, Int[E^(c + d*x^n), x], x] - Dist[1/2, Int[E^(-c - d*
x^n), x], x] /; FreeQ[{c, d}, x] && IGtQ[n, 1]

Rule 2204

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[(F^a*Sqrt[Pi]*Erfi[(c + d*x)*Rt[b*Log[F], 2
]])/(2*d*Rt[b*Log[F], 2]), x] /; FreeQ[{F, a, b, c, d}, x] && PosQ[b]

Rule 2205

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[(F^a*Sqrt[Pi]*Erf[(c + d*x)*Rt[-(b*Log[F]),
 2]])/(2*d*Rt[-(b*Log[F]), 2]), x] /; FreeQ[{F, a, b, c, d}, x] && NegQ[b]

Rubi steps

\begin{align*} \int \frac{\cosh \left (a+\frac{b}{x^2}\right )}{x^4} \, dx &=-\operatorname{Subst}\left (\int x^2 \cosh \left (a+b x^2\right ) \, dx,x,\frac{1}{x}\right )\\ &=-\frac{\sinh \left (a+\frac{b}{x^2}\right )}{2 b x}+\frac{\operatorname{Subst}\left (\int \sinh \left (a+b x^2\right ) \, dx,x,\frac{1}{x}\right )}{2 b}\\ &=-\frac{\sinh \left (a+\frac{b}{x^2}\right )}{2 b x}-\frac{\operatorname{Subst}\left (\int e^{-a-b x^2} \, dx,x,\frac{1}{x}\right )}{4 b}+\frac{\operatorname{Subst}\left (\int e^{a+b x^2} \, dx,x,\frac{1}{x}\right )}{4 b}\\ &=-\frac{e^{-a} \sqrt{\pi } \text{erf}\left (\frac{\sqrt{b}}{x}\right )}{8 b^{3/2}}+\frac{e^a \sqrt{\pi } \text{erfi}\left (\frac{\sqrt{b}}{x}\right )}{8 b^{3/2}}-\frac{\sinh \left (a+\frac{b}{x^2}\right )}{2 b x}\\ \end{align*}

Mathematica [A]  time = 0.0711987, size = 74, normalized size = 0.99 \[ \frac{\sqrt{\pi } x (\sinh (a)-\cosh (a)) \text{Erf}\left (\frac{\sqrt{b}}{x}\right )+\sqrt{\pi } x (\sinh (a)+\cosh (a)) \text{Erfi}\left (\frac{\sqrt{b}}{x}\right )-4 \sqrt{b} \sinh \left (a+\frac{b}{x^2}\right )}{8 b^{3/2} x} \]

Antiderivative was successfully verified.

[In]

Integrate[Cosh[a + b/x^2]/x^4,x]

[Out]

(Sqrt[Pi]*x*Erf[Sqrt[b]/x]*(-Cosh[a] + Sinh[a]) + Sqrt[Pi]*x*Erfi[Sqrt[b]/x]*(Cosh[a] + Sinh[a]) - 4*Sqrt[b]*S
inh[a + b/x^2])/(8*b^(3/2)*x)

________________________________________________________________________________________

Maple [A]  time = 0.033, size = 82, normalized size = 1.1 \begin{align*}{\frac{{{\rm e}^{-a}}}{4\,bx}{{\rm e}^{-{\frac{b}{{x}^{2}}}}}}-{\frac{{{\rm e}^{-a}}\sqrt{\pi }}{8}{\it Erf} \left ({\frac{1}{x}\sqrt{b}} \right ){b}^{-{\frac{3}{2}}}}-{\frac{{{\rm e}^{a}}}{4\,bx}{{\rm e}^{{\frac{b}{{x}^{2}}}}}}+{\frac{{{\rm e}^{a}}\sqrt{\pi }}{8\,b}{\it Erf} \left ({\frac{1}{x}\sqrt{-b}} \right ){\frac{1}{\sqrt{-b}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cosh(a+b/x^2)/x^4,x)

[Out]

1/4*exp(-a)/b/x*exp(-b/x^2)-1/8*exp(-a)/b^(3/2)*Pi^(1/2)*erf(b^(1/2)/x)-1/4*exp(a)*exp(b/x^2)/x/b+1/8*exp(a)/b
*Pi^(1/2)/(-b)^(1/2)*erf((-b)^(1/2)/x)

________________________________________________________________________________________

Maxima [A]  time = 1.16182, size = 85, normalized size = 1.13 \begin{align*} \frac{1}{6} \, b{\left (\frac{e^{\left (-a\right )} \Gamma \left (\frac{5}{2}, \frac{b}{x^{2}}\right )}{x^{5} \left (\frac{b}{x^{2}}\right )^{\frac{5}{2}}} - \frac{e^{a} \Gamma \left (\frac{5}{2}, -\frac{b}{x^{2}}\right )}{x^{5} \left (-\frac{b}{x^{2}}\right )^{\frac{5}{2}}}\right )} - \frac{\cosh \left (a + \frac{b}{x^{2}}\right )}{3 \, x^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(a+b/x^2)/x^4,x, algorithm="maxima")

[Out]

1/6*b*(e^(-a)*gamma(5/2, b/x^2)/(x^5*(b/x^2)^(5/2)) - e^a*gamma(5/2, -b/x^2)/(x^5*(-b/x^2)^(5/2))) - 1/3*cosh(
a + b/x^2)/x^3

________________________________________________________________________________________

Fricas [B]  time = 1.88464, size = 653, normalized size = 8.71 \begin{align*} -\frac{2 \, b \cosh \left (\frac{a x^{2} + b}{x^{2}}\right )^{2} + \sqrt{\pi }{\left (x \cosh \left (a\right ) \cosh \left (\frac{a x^{2} + b}{x^{2}}\right ) + x \cosh \left (\frac{a x^{2} + b}{x^{2}}\right ) \sinh \left (a\right ) +{\left (x \cosh \left (a\right ) + x \sinh \left (a\right )\right )} \sinh \left (\frac{a x^{2} + b}{x^{2}}\right )\right )} \sqrt{-b} \operatorname{erf}\left (\frac{\sqrt{-b}}{x}\right ) + \sqrt{\pi }{\left (x \cosh \left (a\right ) \cosh \left (\frac{a x^{2} + b}{x^{2}}\right ) - x \cosh \left (\frac{a x^{2} + b}{x^{2}}\right ) \sinh \left (a\right ) +{\left (x \cosh \left (a\right ) - x \sinh \left (a\right )\right )} \sinh \left (\frac{a x^{2} + b}{x^{2}}\right )\right )} \sqrt{b} \operatorname{erf}\left (\frac{\sqrt{b}}{x}\right ) + 4 \, b \cosh \left (\frac{a x^{2} + b}{x^{2}}\right ) \sinh \left (\frac{a x^{2} + b}{x^{2}}\right ) + 2 \, b \sinh \left (\frac{a x^{2} + b}{x^{2}}\right )^{2} - 2 \, b}{8 \,{\left (b^{2} x \cosh \left (\frac{a x^{2} + b}{x^{2}}\right ) + b^{2} x \sinh \left (\frac{a x^{2} + b}{x^{2}}\right )\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(a+b/x^2)/x^4,x, algorithm="fricas")

[Out]

-1/8*(2*b*cosh((a*x^2 + b)/x^2)^2 + sqrt(pi)*(x*cosh(a)*cosh((a*x^2 + b)/x^2) + x*cosh((a*x^2 + b)/x^2)*sinh(a
) + (x*cosh(a) + x*sinh(a))*sinh((a*x^2 + b)/x^2))*sqrt(-b)*erf(sqrt(-b)/x) + sqrt(pi)*(x*cosh(a)*cosh((a*x^2
+ b)/x^2) - x*cosh((a*x^2 + b)/x^2)*sinh(a) + (x*cosh(a) - x*sinh(a))*sinh((a*x^2 + b)/x^2))*sqrt(b)*erf(sqrt(
b)/x) + 4*b*cosh((a*x^2 + b)/x^2)*sinh((a*x^2 + b)/x^2) + 2*b*sinh((a*x^2 + b)/x^2)^2 - 2*b)/(b^2*x*cosh((a*x^
2 + b)/x^2) + b^2*x*sinh((a*x^2 + b)/x^2))

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cosh{\left (a + \frac{b}{x^{2}} \right )}}{x^{4}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(a+b/x**2)/x**4,x)

[Out]

Integral(cosh(a + b/x**2)/x**4, x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cosh \left (a + \frac{b}{x^{2}}\right )}{x^{4}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(a+b/x^2)/x^4,x, algorithm="giac")

[Out]

integrate(cosh(a + b/x^2)/x^4, x)